from flask import Flask
from flask import render_template
app = Flask(__name__)
@app.route("/mulu/")
def mulu():
    mulu = """
    <ul>
        <li><a href="/mulu/xiaoshuo/">小说</a></li>
        <li><a href="/mulu/dongman/">动漫</a></li>
        <li><a href="/mulu/tonghua/">童话</a></li>
        <li><a href="/mulu/zazhi/">杂志</a></li>
        <li><a href="/mulu/jiaofu/">教辅</a></li>
    </ul>
"""
    return mulu
@app.route("/mulu/xiaoshuo/")
def xiaoshuo():
    books =[
        {"book_name":"《斗罗大陆》","author":"唐家三少","public":"北京大学出版社"},
        {"book_name":"《完美世界》","author":"辰东","public":" 宝文堂书店 "},
        {"book_name":"《大主宰》","author":"天蚕土豆","public":"春风文艺出版社"},
        {"book_name":"《斗破苍穹》","author":"天蚕土豆","public":"春风文艺出版社"},
        {"book_name":"《灵剑尊》","author":"云天空","public":"中国福利出版社"},
    ]
    return render_template("indexs.html",**locals())
@app.route("/mulu/dongman/")
def dongman():
    books = [
        {"book_name": "《仙王的日常生活》","author":"枯玄","public":"起点中文网"},
        {"book_name": "《秦时明月之沧海横流》","author":"沈乐平","public":"杭州玄机科技信息技术有限公司"},
        {"book_name": "《魔道祖师》","author":"墨香铜臭","public":"阅文集团"},
        {"book_name": "《全职法师4》","author":"管振宇","public":"企鹅影视"},
        {"book_name": "《海贼王》","author":"尾田荣一郎","public":"《海盗路飞》官方网站"},
    ]
    return render_template("indexs.html",**locals())
@app.route("/mulu/tonghua/")
def tonghua():
    books = [
        {"book_name": "《卖火柴的小女孩》","author":"安徒生","public":" 中信出版社"},
        {"book_name": "《小王子》","author":"安托万·德·圣·埃克苏佩里","public":"江苏人民出版社"},
        {"book_name": "《小红帽》","author":"格林","public":"外语教学与研究出版社"},
        {"book_name": "《木偶奇遇记》","author":"科洛迪","public":"接力出版社"},
        {"book_name": "《灰姑娘》","author":"夏尔·佩罗","public":"北bai京du出版社"},
    ]
    return render_template("indexs.html",**locals())
@app.route("/mulu/zazhi/")
def zazhi():
    books = [
        {"book_name": "《读者》","public":",甘肃人民出版社"},
        {"book_name": "《瑞丽》","public":"时尚传媒企业"},
        {"book_name": "《知音》","public":"湖北知音传媒集团"},
        {"book_name": "《青年文摘》","public":"中国青年出版总社"},
        {"book_name": "《意林》","public":"京意林励志图书发行有限公司"},
    ]
    return render_template("indexs.html",**locals())
@app.route("/mulu/jiaofu/")
def jiaofu():
    books = [
        {"book_name": "《典中点》","author":"荣德基","public":"龙门书局"},
        {"book_name": "《五三（五年中考三年模拟）》","author":"曲一线","public":"教育科学出版社"},
        {"book_name": "《新教材完全解读》","author":"马凤娟","public":"吉林人民出版社"},
        {"book_name": "《尖子生学案》","author":"朱晶","public":"吉林人民出版社"},
        {"book_name": "《中学教材全解》","author":"薛金星","public":"陕西人民教育出版社"},
    ]
    return render_template("indexs.html",**locals())
if __name__=='__main__':
    app.run(
        host="10.10.18.246",
        port=80,
        debug=True
    )